package DataLayer.DB;

import java.util.ArrayList;

import DataLayer.Model.Produkt;

public interface IFDBProdukt
{
	// get all products with a specific visibility status
	public ArrayList<Produkt> getAllProdukt(boolean synlig);

	// get a product based on type and visibility status
	public ArrayList<Produkt> searchProduktViaType(String type, boolean synlig);

	// get a product based on model and visibility status
	public ArrayList<Produkt> searchProduktViaModel(String model, boolean synlig);

	// get a product based on product id
	public Produkt getProdukt(int produktId);

	// insert new product
	public int insertProdukt(Produkt p) throws Exception;

	// update product
	public int updateProdukt(Produkt p);

	// delete product
	public int deleteProdukt(int produktId);
}